<!--
        *前台会员中心订单管理
        * 
        *
        * @author     yuanxi
        * @version    2018-03-01 23:14    
-->
<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta name="renderer" content="webkit|ie-comp|ie-stand">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta charset="utf-8">
    <meta http-equiv="Cache-Control" content="no-siteapp">
    <title>订单列表-会员中心</title>
    <meta name="keywords" content="">
    <meta name="description" content="">
    <link href="/public/static/homes/css/iconfont/iconfont.css" rel="stylesheet"/>
    <link href="/public/static/homes/css/common.css" rel="stylesheet"/>
    <link href="/public/static/homes/css/uc.css" rel="stylesheet"/>
</head>
<body>
    <!--头部-->
    {:widget("Cate/header")}
    
    <div class="wrapper uc-router">
        <ul>
            <li><a href="/homeindex/index">首页</a></li>
            <li><span class="divider"></span></li>
            <li><span><a href="/myuser/myuser">会员中心</a></span></li>
            <li><span class="divider"></span></li>
            <li><span><a href="/myorder/index">订单列表</a></span></li>
        </ul>
    </div>

    <div class="wrapper">
        <div class="uc-main clearfix">
            {:widget("Cate/left")}
             <div class="uc-content">
                <div class="uc-panel">
                    <div class="uc-bigtit">订单列表</div>
                    <div class="uc-panel-bd">
                    {if condition="$order"}
                       {volist name="order" id="row"}
                        <table class="uc-table">
                            <thead>
                                <td></th>
                                <th></th>
                                <th></th>
                                <th width="120"></th>
                            </thead>
                            <tr class="hd order-meta">
                                <td colspan="5">
                                    <div class="left">{$row['time']|date="Y-m-d H:i:s",###}   订单号: {$row.orderid}</div>
                                    <div class="right"> 客服电话：xxx</div>
                                </td>
                            </tr>
                            <tr class="order-goods">
                                <td>
                                 {foreach $row['goods_list'] as $v}
                                    <div class="goods-info">
                                        <img class="figure" src="{$v.pic}" alt="" />
                                        <div class="info">
                                            <div>{$v.goodsname}</div>
                                            <div>{$v.price}元×{$v.gnum}</div>
                                        </div>
                                    </div>
                                {/foreach}
                                </td>
                                <td>
                                    收货人：<span class="fwb">{$row.linkname}</span>
                                    <span class="fwb">&nbsp;&nbsp;&nbsp;</span>
                                    金额：<span class="text-theme fwb">{$row.money}元</span>
                                </td>
                            {if condition="($row.status eq 0)"}
                                <td>
                                    <a class="text-info" href="/myorder/detail/oid/{$row.id}">订单详情</a><br />
                                </td>
                                <td>
                                    <a href="/myorder/pay/id/{$row.id}" class="ui-btn-theme uc-btn-md">去付款</a>
                                    <a href="/myorder/cancel/id/{$row.id}" class="ui-btn-low ui-btn-hollow uc-btn-md mt10">取消订单</a>
                                </td>
                             {elseif condition="($row.status eq 1)"/}
                                <td>
                                    <span class="status">已付款</span><br />
                                    <a class="text-info" href="/myorder/detail/oid/{$row.id}">订单详情</a><br />
                                </td>
                                <td>
                                    <a href="" class="ui-btn-theme uc-btn-md">催足发货</a>
                                    <a href="javascript:void(0)" class="ui-btn-low ui-btn-hollow uc-btn-md mt10">未发货</a>
                                </td>
                            {elseif condition="($row.status eq 2)"/}
                                <td>
                                    <span class="status">快件未签收</span><br />
                                    <a class="text-info" href="/myorder/detail/oid/{$row.id}">订单详情</a><br />
                                </td>
                                <td>
                                    <a href="/myorder/sign/id/{$row.id}" class="ui-btn-theme uc-btn-md">去签收</a>
                                    <a href="javascript:void(0)" class="ui-btn-low ui-btn-hollow uc-btn-md mt10">已发货</a>
                                </td>
                            {elseif condition="($row.status eq 3)"/}
                                <td>
                                    <span class="status">快件已签收</span><br />
                                    <a class="text-info" href="/myorder/detail/oid/{$row.id}">订单详情</a><br />
                                </td>
                                <td>
                                    <a href="/evaluat/toevaluat/id/{$row.id}" class="ui-btn-theme uc-btn-md">去评价</a>
                                    <a href="javascript:void(0)" class="ui-btn-low ui-btn-hollow uc-btn-md mt10">未评价</a>
                                </td>
                            {elseif condition="($row.status eq 4)"/}
                                <td>
                                    <span class="status">快件已签收</span><br />
                                    <a class="text-info" href="/myorder/detail/oid/{$row.id}">订单详情</a><br />
                                </td>
                                <td>
                                    <a href="/evaluat/toevaluat/id/{$row.id}" class="ui-btn-theme uc-btn-md">查看评价</a>
                                    <a href="javascript:void(0)" class="ui-btn-low ui-btn-hollow uc-btn-md mt10">已评价</a>
                                </td>
                            {else/}
                                <td>
                                    <span class="status">订单已取消</span><br />
                                    <a class="text-info" href="/myorder/detail/oid/{$row.id}">订单详情</a><br />
                                </td>
                                <td>
                                    <a href="javascript:void(0)" class="ui-btn-low ui-btn-hollow uc-btn-md mt10">订单已取消</a>
                                </td>        
                            </tr>
                            {/if}
                           
                        </table>
                        {/volist}
                        {else/}
                        <center><p style="font-size:16px;color:red">还没有订单，赶快添加吧~</p></center>
                        {/if}
                        <div class="ta-c">
                           
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>

    {:widget("Cate/footer")}